package com.peanut.baby.mvp.record;

import android.app.Activity;

import com.peanut.baby.model.UploadConf;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/7/20.
 */

public interface RecordEditContract {
    interface View extends BaseView{
        void onPermissionGranted(List<String> grantPermissions);
        void onPermissionDenied(List<String> grantPermissions);
        void onPictureUploadFinished(List<UploadConf> configs);
        void onSubmitRecordSuccess();
        void onRequestFailed(String reason);
    }

    interface Presenter extends BasePresenter{
        void checkPermissionBeforeSelectPhoto(Activity activity);
        void submitRecord(int flag, String type, String content, String images);
        void compressAndUploadPicture(List<String> photos);
    }
}
